package cn.kgc.musicserver.service.impl;

import cn.kgc.musicserver.domain.entity.Song;
import cn.kgc.musicserver.mapper.SongMapper;
import cn.kgc.musicserver.service.ISongService;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 歌曲 服务实现类
 * </p>
 *
 * @author kgc
 * @since 2025-06-18
 */
@Service
public class SongServiceImpl extends ServiceImpl<SongMapper, Song> implements ISongService {

    @Override
    public IPage<Song> pageWithSinger(Page<Song> page, String search) {
        return this.baseMapper.selectPageWithSinger(page, search);
    }

}
